<?php



namespace App\Services\Other\Services;


use App\Services\Base\Services\ConfigService;
use App\Services\Other\Interfaces\RedeemServiceInterface;
use App\Services\Base\Interfaces\ConfigServiceInterface;
use App\Services\Other\Models\Product;

class RedeemService implements RedeemServiceInterface
{
    /**
     * @var ConfigService
     */
    protected $configService;

    public function __construct(ConfigServiceInterface $configService)
    {
        $this->configService = $configService;
    }

    /**
     * @param array $ids
     *
     * @return array
     */
    public function getList(array $ids): array
    {
        return Product::query()
            ->select(['id','user_id','title','thumb'])
            ->whereIn('id', $ids)
            ->get()
            ->toArray();
    }


}
